package a08_decorator;

public class Client {

	public static void main(String[] args) {
		IComponent component = new BaseComponent();
		IComponent decorator1 = new ConcreteDecorator1(component);
		component.dosomeThing();
		decorator1.dosomeThing();
		IComponent decorator2 = new ConcreteDecorator2(component);
		decorator2.dosomeThing();
		IComponent decorator3 = new ConcreteDecorator2(decorator1);
		decorator3.dosomeThing();
	}

}
